@extends('layouts.app')
@section('content')
<div id="Main">
    <div class="sep20"></div>
    <div class="box">
        <div class="header"><a href="/">V2EX</a> <span class="chevron">&nbsp;›&nbsp;</span> 登录 &nbsp;<li class="fa fa-lock"></li></div>
        <div class="cell">
            @if (count($errors) > 0)
                <div class="problem">请解决以下问题然后再提交：
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
            @endif
            <form method="POST" action="{{ url('login') }}">
                {{ csrf_field() }}
                <table cellpadding="5" cellspacing="0" border="0" width="100%">
                    <tbody>
                    <tr>
                        <td width="120" align="right">邮箱</td>
                        <td width="auto" align="left"><input type="text" class="sl" name="email"  autofocus="autofocus" autocorrect="off" spellcheck="false" autocapitalize="off" placeholder="电子邮箱地址" value="{{ old('email') }}"></td>
                    </tr>
                    <tr>
                        <td width="120" align="right">密码</td>
                        <td width="auto" align="left"><input type="password" class="sl" name="password" autocorrect="off" spellcheck="false" autocapitalize="off" placeholder="密码"></td>
                    </tr>
                    <tr>
                        <td width="120" align="right"></td>
                        <td width="auto" align="left">
                            <input type="submit" class="super normal button" value="登录">&nbsp;&nbsp;
                            <label><input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}>记住密码</label>
                        </td>
                    </tr>
                    <tr>
                        <td width="120" align="right"></td>
                        <td width="auto" align="left"><a href="{{ url('password/reset') }}">我忘记密码了</a></td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>

    </div>
</div>
@endsection
